import request from '@/utils/ajax'
// import axios from 'axios';
// let request = axios.create()
// 获取个人信息对象
export const getInfo = () => request({ url: '/api/list/showlist', method: 'get' })
// 添加人物信息
export const setInfo = (title) => request({ url: `/api/list/addlist`, method: 'post', data:title })
// 修改人物的信息
export const modifyInfo = (data) => request({ url: '/api/list/updatelist/', method: 'post', data })
// 删除的回调   http://localhost:3000/api/list//deletelist?id=7w
export const deleteInfo = (id) => request({ url: `/api/list/deletelist?id=${id}`, method: 'delete' })
